<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置 - 家族树</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
            margin: 0;
            padding: 0;
            padding-bottom: 83px; /* 为底部导航栏留出空间 */
        }
        
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 导航栏 */
        .nav-bar {
            height: 44px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background-color: #ffffff;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        .back-button {
            position: absolute;
            left: 16px;
            font-size: 20px;
            color: #333;
        }
        
        .page-title {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
        }
        
        /* 底部导航栏样式 */
        .tab-bar {
            height: 83px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #f0f0f0;
            padding-bottom: 20px; /* 适配iPhone底部安全区域 */
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 10px;
            padding: 8px 0;
        }
        
        .tab-item.active {
            color: #e86c60; /* 主题色 */
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        /* 菜单列表 */
        .menu-section {
            background-color: white;
            margin: 16px 0;
        }
        
        .menu-section-title {
            font-size: 14px;
            color: #999;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-icon {
            width: 24px;
            color: #e86c60;
            margin-right: 12px;
            text-align: center;
        }
        
        .menu-label {
            flex: 1;
            font-size: 16px;
            color: #333;
        }
        
        .menu-value {
            font-size: 14px;
            color: #999;
            margin-right: 8px;
        }
        
        .menu-arrow {
            color: #ccc;
        }
        
        /* 开关样式 */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #e86c60;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        /* 版本信息 */
        .version-info {
            text-align: center;
            padding: 24px 16px;
            color: #999;
            font-size: 12px;
        }
        
        .app-logo {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            margin: 0 auto 8px;
        }
        
        /* 退出按钮 */
        .logout-button {
            background-color: white;
            color: #e86c60;
            text-align: center;
            padding: 16px;
            margin: 16px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
        }
    </style>
</head>
<body class="scroll-container-y">
    <!-- iOS状态栏 -->
    <div class="status-bar">
        <div class="time font-medium">9:41</div>
        <div class="icons flex">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>
    
    <!-- 导航栏 -->
    <div class="nav-bar">
        <a href="profile.html" class="back-button">
            <i class="fas fa-chevron-left"></i>
        </a>
        <div class="page-title">设置</div>
    </div>
    
    <!-- 账号设置 -->
    <div class="menu-section">
        <div class="menu-section-title">账号设置</div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-user"></i>
            </div>
            <div class="menu-label">个人资料</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-lock"></i>
            </div>
            <div class="menu-label">账号安全</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-shield-alt"></i>
            </div>
            <div class="menu-label">隐私设置</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 通知设置 -->
    <div class="menu-section">
        <div class="menu-section-title">通知设置</div>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-bell"></i>
            </div>
            <div class="menu-label">推送通知</div>
            <label class="switch">
                <input type="checkbox" checked>
                <span class="slider"></span>
            </label>
        </div>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-birthday-cake"></i>
            </div>
            <div class="menu-label">生日提醒</div>
            <label class="switch">
                <input type="checkbox" checked>
                <span class="slider"></span>
            </label>
        </div>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-calendar-alt"></i>
            </div>
            <div class="menu-label">活动提醒</div>
            <label class="switch">
                <input type="checkbox" checked>
                <span class="slider"></span>
            </label>
        </div>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-comment-dots"></i>
            </div>
            <div class="menu-label">消息提醒</div>
            <label class="switch">
                <input type="checkbox" checked>
                <span class="slider"></span>
            </label>
        </div>
    </div>
    
    <!-- 通用设置 -->
    <div class="menu-section">
        <div class="menu-section-title">通用设置</div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-globe"></i>
            </div>
            <div class="menu-label">语言</div>
            <div class="menu-value">简体中文</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-user-plus"></i>
            </div>
            <div class="menu-label">长辈关怀模式</div>
            <label class="switch">
                <input type="checkbox">
                <span class="slider"></span>
            </label>
        </div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-trash-alt"></i>
            </div>
            <div class="menu-label">清除缓存</div>
            <div class="menu-value">56.2MB</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 其他 -->
    <div class="menu-section">
        <div class="menu-section-title">其他</div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-question-circle"></i>
            </div>
            <div class="menu-label">帮助与反馈</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-info-circle"></i>
            </div>
            <div class="menu-label">关于我们</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-file-alt"></i>
            </div>
            <div class="menu-label">用户协议</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-shield-alt"></i>
            </div>
            <div class="menu-label">隐私政策</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 版本信息 -->
    <div class="version-info">
        <img src="https://via.placeholder.com/60" alt="App Logo" class="app-logo">
        <div>家族树 v1.0.0</div>
        <div class="mt-1">© 2023 家族树团队 版权所有</div>
    </div>
    
    <!-- 退出登录 -->
    <a href="login.html" class="logout-button">
        退出登录
    </a>
    
    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <a href="home.html" class="tab-item">
            <i class="tab-icon fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="family_tree.html" class="tab-item">
            <i class="tab-icon fas fa-sitemap"></i>
            <span>家谱</span>
        </a>
        <a href="family_activity.html" class="tab-item">
            <i class="tab-icon fas fa-calendar-alt"></i>
            <span>活动</span>
        </a>
        <a href="family_stories.html" class="tab-item">
            <i class="tab-icon fas fa-book"></i>
            <span>故事</span>
        </a>
        <a href="profile.html" class="tab-item active">
            <i class="tab-icon fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
</body>
</html> 